#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable : 4996)
#pragma warning(disable : 6031)

#include "Btree.h"

int main()
{
	char arr[] = "ABD##E#H##CF##G##";
	int i = 0;
	BTNode* root = BinaryTreeCreate(arr, sizeof(arr) / sizeof(arr[0]), &i);
	BinaryTreePrevOrder(root);
	printf("\n");
	BinaryTreeInOrder(root);
	printf("\n");
	BinaryTreePostOrder(root);
	printf("\n");
	
	printf("BinaryTreeSize:%d", BinaryTreeSize(root));
	printf("\n");
	printf("BinaryTreeLeafSize:%d", BinaryTreeLeafSize(root));
	printf("\n");
	printf("BinaryTreeLevelKSize:%d", BinaryTreeLevelKSize(root , 3));
	printf("\n");
	printf("BinaryTreeFind:%p", BinaryTreeFind(root, 'C'));
	printf("\n");
	printf("BinaryTreeComplete:%d", BinaryTreeComplete(root));
	printf("\n");
	BinaryTreeLevelOrder(root);
	printf("\n");
	BinaryTreeDestory(&root);
	return 0;
}